package com.jie.deletefile.Contacts;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import android.widget.RelativeLayout;

import com.jie.deletefile.R;

import java.util.List;

public class ShowActivity extends AppCompatActivity {

    private android.widget.ListView lvshow;
    private android.widget.RelativeLayout activityshow;
    private ContactsAdapter adapter;
    private List<ContactBean> data;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show);
        this.activityshow = (RelativeLayout) findViewById(R.id.activity_show);
        this.lvshow = (ListView) findViewById(R.id.lv_show);
        data = ContactLogic.getPhoneContacts(this);
        adapter = new ContactsAdapter(this, R.layout.item_contacts, data);
        lvshow.setAdapter(adapter);

    }
}
